package ControlLayer;
import ModelLayer.*;
import java.util.ArrayList;

/**
 * Write a description of class EmployeeCtrl here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class EmployeeCtrl
{
    private static EmployeeContainer employeeCont = new EmployeeContainer();
    
    public EmployeeCtrl()
    {
        //employeeCont = new EmployeeContainer();
    }
    
    /**
     * add employee
     * @param Sring newEmployee
     */
    public Employee getEmployee(long _id)
    {
        return employeeCont.getEmployee(_id);
    }
    
    public void createEmployee(Employee _employee)
    {
        employeeCont.createEmployee(_employee);
    }
    
    public void updateEmployee(Employee _employee)
    {
       employeeCont.updateEmployee(_employee);
    }
    
    public void removeEmployee(long _id)
    {
        employeeCont.removeEmployee(_id);
    }
    
    public ArrayList<Employee> listAllEmployees()
    {
        return employeeCont.listAllEmployees();
    }
    
   
}

